package com.dkd.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 学生宿舍管理对象 tb_hostel
 * 
 * @author czq
 * @date 2024-11-09
 */
public class Hostel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 书院名 */
    @Excel(name = "书院名")
    private String hostelName;

    /** 房间号 */
    @Excel(name = "房间号")
    private String roomNumber;

    /** 容纳人数（最多6人） */
    @Excel(name = "容纳人数", readConverterExp = "最=多6人")
    private Integer capacity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHostelName(String hostelName) 
    {
        this.hostelName = hostelName;
    }

    public String getHostelName() 
    {
        return hostelName;
    }
    public void setRoomNumber(String roomNumber) 
    {
        this.roomNumber = roomNumber;
    }

    public String getRoomNumber() 
    {
        return roomNumber;
    }
    public void setCapacity(Integer capacity) 
    {
        this.capacity = capacity;
    }

    public Integer getCapacity() 
    {
        return capacity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hostelName", getHostelName())
            .append("roomNumber", getRoomNumber())
            .append("capacity", getCapacity())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
